from django.shortcuts import render


# Create your views here.
def index(request):
    context = {
        'city': '广州',
        'adict': {
            'name': '西游记',
            'author': '吴承恩'
        },
        'alist': [1, 2, 3, 4, 5],
        'age': 25,
        'gender': '男'
    }
    return render(request, 'index.html', context=context)


def myextend(request):
    return render(request, 'son.html', context={})


def jinja2_(request):
    info = {
        'color': ['赤', '橙', '黄', '绿', '青', '蓝', '紫']
    }
    return render(request, 'jinja2_demo.html',context=info )
